package com.tron.dobest.elasticsearch;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Mapping;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 描述：
 *
 * @author TRON
 * @since 2020-04-27
 */
@Data
@Document(indexName = "tron_person")
@Mapping(mappingPath = "mapping/person.json")
public class Person{
    private String id;
    private String name;
    private String gender;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date date;

}
